/* 全局样式重置 */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f5f5f5;
}

#root {
  height: 100%;
}

/* 滚动条全局样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 代码样式 */
code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* 链接样式 */
a {
  color: #146bb5;
  text-decoration: none;
}

a:hover {
  color: #1890ff;
  text-decoration: underline;
}

/* 按钮和输入框焦点样式 */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #146bb5;
  outline-offset: 2px;
}

/* 表格样式优化 */
table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border: 1px solid #f0f0f0;
  padding: 8px 12px;
  text-align: left;
}

th {
  background: #fafafa;
  font-weight: 500;
}
